package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface MemberDao {

//    void add(Member member);
//    Member findById(Integer id);
//    void editMember(Member member);
//    void deleteById(Integer id);

    Member findByTelephone(String phoneNumber);

    Integer infant();

    Integer children();

    Integer teenager();

    Integer youth();

    Integer middle();

    Integer agedness();


//    Page<Member> selectByCondition(String queryString);

    Member findMemberByIdCardAndPwd(@Param("idCard") String idCard, @Param("password") String password);

    List<Map> findSetmealById(int id);

    String findPasswordById(int parseInt);

    void editPassword(Map map);

    List<Map> findSetmealByIdAndDate(Map newMap);

    void edit2Telephone(Map map);


    //刘浩然
//    Member findByTelephone(String telephone);

    void add(Member member);

    Page<Member> selectByCondition(Map map);

    String findHealthManager(Integer theHealthManagerId);

    List<User> findUser();

    Member findById(Integer id);

    int findCountByMemberId(Integer id);


    void deleteById(Integer id);


    void edit(Map map);


    List<Map<String,Object>> findmemberInfo(@Param("id") int id);

    List<Map<String,Object>> findAllCheckGroup(String setmeal);

    List<Map<String,Object>> findAllCheckItem(String checkGroup);
    List<Map> findMemberAge();


    Page<Member> selectByTime(Date startTime, Date endTime);

//    void getMemberReport();

    List<Member> findAll();


    void edit01(Member member);

    void forgetPassword(@Param("id") String id,@Param("password") String password);
}
